import request from '@/utils/request'

// 查询接口管理列表
export function listManagement(query) {
  return request({
    url: '/test/management/list',
    method: 'get',
    params: query
  })
}

// 查询接口管理详细
export function getManagement(id) {
  return request({
    url: '/test/management/' + id,
    method: 'get'
  })
}

// 新增接口管理
export function addManagement(data) {
  return request({
    url: '/test/management',
    method: 'post',
    data: data
  })
}

// 修改接口管理
export function updateManagement(data) {
  return request({
    url: '/test/management',
    method: 'put',
    data: data
  })
}

// 删除接口管理
export function delManagement(id) {
  return request({
    url: '/test/management/' + id,
    method: 'delete'
  })
}
// 获取接口数据
export function getTableList(id) {
  return request({
    url: '/test/param/getTable/'+ id,
    method: 'get'
  })
}
